﻿<%@ Page Title="VerwijderProfiel"Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="VerwijderProfiel.aspx.cs" Inherits="Quaack.VerwijderProfiel" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    </asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
        Selecteer een profiel:
        <asp:DropDownList ID="DDProfielnaam" runat="server" DataSourceID="SqlDataSource2" DataTextField="username" DataValueField="username" AutoPostBack="true">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:Quaack %>" SelectCommand="SELECT [username] FROM [profile]"></asp:SqlDataSource>
        <br />
        <asp:GridView ID="GridView1" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" runat="server" DataKeyNames="profileid">
            <Columns>
                <asp:BoundField DataField="profileid" HeaderText="profileid" SortExpression="profileid" InsertVisible="False" ReadOnly="True" />
                <asp:BoundField DataField="username" HeaderText="username" SortExpression="username" />
                <asp:CheckBoxField DataField="tempblocked" HeaderText="tempblocked" SortExpression="tempblocked" />
            </Columns>
            <selectedrowstyle backcolor="LightCyan" forecolor="DarkBlue" font-bold="true"/> 
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Quaack %>" SelectCommand="SELECT [profileid], [username], [tempblocked] FROM [profile] WHERE ([username] = @username2)">
        <SelectParameters>
        <asp:ControlParameter ControlID="DDProfielnaam" Name="username2" PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
        </asp:SqlDataSource>
        <br />
        <br />
        <asp:Button ID="BtnVerwijderProfiel" runat="server" Text="Admin: verwijder profiel" Visible="False" OnClick="ClkVerwijderProfiel" />
        <br />
        </asp:Content>